<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'contactRiskWarningDisposition.label', default: 'ContactRiskWarningDisposition')}"/>
    <title>编辑处置</title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right navFloatRight">
                <ol class="hbreadcrumb breadcrumb">
                    <li>
                        <span>CINDTATA PLS</span>
                    </li>
                    <li>
                        <span>借款人(个人)</span>
                    </li>
                    <li class="active">
                        <span>编辑处置</span>
                    </li>
                </ol>
            </div>
        </div>
    </div>
</div>

<div class="content animate-panel">

    <div class="row">

        <div class="alert alert-info hide" role="status" id="alert-danger">提醒</div>
        <g:if test="${flash.message}">
            <div class="message alert alert-info" role="status">${flash.message}
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
            </div>
        </g:if>

        <g:hasErrors bean="${this.contactRiskWarningDisposition}">
            <ul class="errors" role="alert">
                <g:eachError bean="${this.contactRiskWarningDisposition}" var="error">
                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
                        <g:message error="${error}"/>
                    </li>
                </g:eachError>
            </ul>
        </g:hasErrors>

        <div class="hpanel hblue">
            <div class="panel-heading no-padding">
                <ul class="nav nav-tabs">
                </ul>
            </div>
            <div class="tab-content panel-body">
                <g:form resource="${this.contactRiskWarningDisposition}" method="PUT" class="form-horizontal">

                    <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>

                    <div class="form-group">
                        <label class="col-md-3 control-label is-required">处置措施</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="type" id="type" from="${com.cindata.dictionary.ContactRiskWarningDispositionType.list()}" optionValue="name" optionKey="id" value="${this?.contactRiskWarningDisposition?.type?.id}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label is-required">开始处置时间</label>
                        <div class="col-md-3">
                            <g:datePicker class="form-control" name="startDate" value="${this?.contactRiskWarningDisposition?.startDate}"" precision="minute"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label is-required">计划完成时间</label>
                        <div class="col-md-3">
                            <g:datePicker class="form-control" name="endDate" value="${this?.contactRiskWarningDisposition?.endDate}"" precision="minute"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label is-required">描述说明</label>
                        <div class="col-md-3">
                            <g:textArea name="description" id="description" class="form-control textarea" rows="5" cols="10" value="${this?.contactRiskWarningDisposition?.description}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>

</body>
</html>
